﻿using Mes.Domain.BoundedContext.EntityBase;

namespace Mes.Domain.BoundedContext.Entities.Operations
{
    public class OperStepGrp : NoIdEntityBase
    {
        public OperStepGrp() { }

        public OperStepGrp(string processId, string operId, int stepGrpId, string stepGrpDesc, int stepGrpSeq, string? lastEditComment, DateTime lastEditAt)
        {
            Process_Id = processId;
            Oper_Id = operId;
            Step_Grp_Id = stepGrpId;
            Step_Grp_Desc = stepGrpDesc;
            Step_Grp_Seq = stepGrpSeq;
            Last_Edit_Comment = lastEditComment;
            Last_Edit_At = lastEditAt;
        }

        public string Process_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public int Step_Grp_Id { get; set; } = 0;

        public string Step_Grp_Desc { get; set; } = string.Empty;

        public int Step_Grp_Seq { get; set; } = 0;

        public int Repeatability { get; set; } = 0;

        public string? Last_Edit_Comment { get; set; } = null;

        public string Last_Edit_By { get; set; } = string.Empty;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public int Row_Id { get; set; } = 0;
    }
}
